package com.example.perplonews.a_d_fragment.e_mine.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.perplonews.R
import com.example.perplonews.a_b_entity.UserMenuEntity

class UserItemAdapter:BaseQuickAdapter<UserMenuEntity,BaseViewHolder> {
    constructor(list: ArrayList<UserMenuEntity>):super(R.layout.item_user_menu,list){

    }

    override fun convert(helper: BaseViewHolder?, item: UserMenuEntity?) {
        helper?.setText(R.id.user_menu_item_name, item?.name)
        helper?.setImageResource(R.id.user_menu_icon, item!!.imgId)

    }
}